package demo

object ArrayDemo {
  val a: List[Int] = List.range(1, 10)
  //  println(nums(0))

  def main(args: Array[String]): Unit = {
    print(Array.iterate(0, 3)(a => a + 1).mkString("Array(", ", ", ")"))
    val myList = Array(1.9, 2.9, 3.4, 3.5)
    myList(0) = 1
    println(myList.mkString("Array(", ", ", ")"))
    var n = 5
    var newLine = new Array[Int](n)
    println(newLine.mkString("Array(", ", ", ")"))
  }
}
